package fr.ralmn.OgameDroid.Object;

/**
 * 
 * @author ralmn
 *
 */
public class OShip implements Ship {

	private double Shield = 0;
	private double Attack = 0;
	private double Structure = 0;
	private double Carburant = 0;
	private double Fret = 0;
	private double Speed = 0;

	// Obliger ! -----------------------------------------------
	private String name = null;
	private String desc = null;
	private double base_metal, base_cristal, base_deuterium;
	// --------------------------------------------------------
	/**
	 * 
	 * @param n
	 *            Nom
	 * @param d
	 *            Description
	 * @param bm
	 *            Metal requis
	 * @param bc
	 *            Cristal requis
	 * @param bd
	 *            Deuterium Requis
	 * @param str
	 *            valeur Structure
	 * @param s
	 *            valeur bouclier
	 * @param a
	 *            valeur attaque
	 * @param f
	 *            valeur fret
	 * @param c
	 *            valeur carburant
	 * @param sp
	 *            valeur Vitesse;
	 */
	public OShip(String n, String d, double bm, double bc, double bd, double str, double s,
			double a, double f, double c, double sp) {
		name = n;
		desc = d;
		base_metal = bm;
		base_cristal = bc;
		base_deuterium = bd;
		Attack = a;
		Speed = sp;
		Shield = s;
		Fret = f;
		Carburant = c;
		Structure = str;
	}

	public String getName() {
		return name;
	}

	public String getDesc() {
		return desc;
	}

	public double getBase_metal() {
		return base_metal;
	}

	public double getBase_cristal() {
		return base_cristal;
	}

	public double getBase_deuterium() {
		return base_deuterium;
	}

	/**
	 * 
	 * @param n
	 *            Nom
	 * @param d
	 *            Description
	 * @param bm
	 *            Metal requis
	 * @param bc
	 *            Cristal requis
	 * @param bd
	 *            Deuterium Requis
	 * @param str
	 *            valeur Structure
	 * @param s
	 *            valeur bouclier
	 * @param a
	 *            valeur attaque
	 * @param f
	 *            valeur fret
	 * @param c
	 *            valeur carburant
	 * @param sp
	 *            valeur Vitesse;
	 */
	public OShip(String n, String d, int bm, int bc, int bd, int str, double s,
			double a, int f, int c, int sp) {
		name = n;
		desc = d;
		base_metal = bm;
		base_cristal = bc;
		base_deuterium = bd;
		Attack = a;
		Speed = sp;
		Shield = s;
		Fret = f;
		Carburant = c;
		Structure = str;
	}

	@Override
	public double getShield() {
		return Shield;
	}

	@Override
	public double getAttack() {
		return Attack;
	}

	@Override
	public double getFret() {
		return Fret;
	}

	@Override
	public double getCarburant() {
		return Carburant;
	}

	@Override
	public double getSpeed() {
		return Speed;
	}

	@Override
	public double getStructure() {
		return Structure;
	}
	
	
}
